import {connectToEditor} from "open-vector-editor"

// 生成自定义Dom内容的包装函数
const myCustomDom = function (props) {
  return (
    connectToEditor(() => {
      return {
        ...props
      }
    })(props.domComponent)
  )
}

export default myCustomDom